package com.carbohydrate42.kotlin_compose_demo.compose

import android.content.Context
import android.hardware.usb.UsbManager
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.tooling.preview.Preview


/**
 * you can try this library
 *
 * https://github.com/mik3y/usb-serial-for-android
 */
@Composable
@Preview(showBackground = true, showSystemUi = true)
fun TrySerialPortCommunication() {
    val context = LocalContext.current

    val manager = context.getSystemService(Context.USB_SERVICE) as UsbManager

}